import request from '@/utils/request'

export function getStock(data) {
  return request({
    url: 'stock/list',
    method: 'post',
    data
  })
}

export function editStock(data) {
  return request({
    url: 'stock/edit',
    method: 'post',
    data
  })
}

export function addStock(data) {
  return request({
    url: 'stock/add',
    method: 'post',
    data
  })
}

export function delStock(data) {
  return request({
    url: 'stock/del',
    method: 'post',
    data
  })
}

export function getCatalog(data) {
  return request({
    url: 'catalog/list',
    method: 'post',
    data
  })
}

export function addCatalog(data) {
  return request({
    url: 'catalog/add',
    method: 'post',
    data
  })
}

export function editCatalog(data) {
  return request({
    url: 'catalog/edit',
    method: 'post',
    data
  })
}

export function delCatalog(data) {
  return request({
    url: 'catalog/del',
    method: 'post',
    data
  })
}
